From: Andrew Cooper Date: Tue, 4 Mar 2014 10:18:28 +0000 (+0100) Subject: misc cleanup as a result of the previous patches X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5520 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:/?a=commitdiff_plain;h=f600b324bc5235a179eb6c6f57e564667b8fb8de;p=xen.git misc cleanup as a result of the previous patches This includes: * A stale comment in sh_skip_sync() * A dead for ever loop in __bug() * A prototype for machine_power_off() which unimplemented in any architecture * Replacing a for(;;); loop with unreachable() Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich Acked-by: Tim Deegan Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/efi/boot.c b/xen/arch/x86/efi/boot.c index a26e0af766..62c4812117 100644 --- a/xen/arch/x86/efi/boot.c +++ b/xen/arch/x86/efi/boot.c @@ -201,7 +201,7 @@ static void __init noreturn blexit(const CHAR16 *str) efi_bs->FreePages(xsm.addr, PFN_UP(xsm.size)); efi_bs->Exit(efi_ih, EFI_SUCCESS, 0, NULL); - for( ; ; ); /* not reached */ + unreachable(); /* not reached */ } /* generic routine for printing error messages */ diff --git a/xen/arch/x86/mm/shadow/common.c b/xen/arch/x86/mm/shadow/common.c index b2bd7c2f43..6eb781e45c 100644 --- a/xen/arch/x86/mm/shadow/common.c +++ b/xen/arch/x86/mm/shadow/common.c @@ -874,7 +874,6 @@ static int sh_skip_sync(struct vcpu *v, mfn_t gl1mfn) SHADOW_ERROR("gmfn %#lx was OOS but not shadowed as an l1.\n", mfn_x(gl1mfn)); BUG(); - return 0; /* BUG() is no longer __attribute__((noreturn)). */ } diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 532c4263e2..7d4383ce6f 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -1089,7 +1089,6 @@ void __bug(char *file, int line) printk("Xen BUG at %s:%d\n", file, line); dump_execution_state(); panic("Xen BUG at %s:%d", file, line); - for ( ; ; ) ; } void __warn(char *file, int line) diff --git a/xen/include/xen/shutdown.h b/xen/include/xen/shutdown.h index f04905b56f..a00bfeffd4 100644 --- a/xen/include/xen/shutdown.h +++ b/xen/include/xen/shutdown.h @@ -10,6 +10,5 @@ void noreturn dom0_shutdown(u8 reason); void noreturn machine_restart(unsigned int delay_millisecs); void noreturn machine_halt(void); -void machine_power_off(void); #endif /* __XEN_SHUTDOWN_H__ */